home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 2.iso / dist / fw_pspell.idb / usr / freeware / src / pspell / patches.z / patches
Text File  |  2001-04-12  |  7KB  |  275 lines

  1. --- ./interface/app_string.hh    Sun Jun 11 17:05:22 2000
  2. +++ ../pspell-.12/./interface/app_string.hh    Fri Mar 30 17:53:16 2001
  3. @@ -11,7 +11,7 @@
  4.  #ifndef PSPELL_APP_STRING__HH
  5.  #define PSPELL_APP_STRING__HH
  6.  
  7. -#include <cstring>
  8. +#include <string.h>
  9.  
  10.  class PspellAppendableString {
  11.  public:
  12. --- ./interface/itemize.cc    Sun Jun 11 17:05:22 2000
  13. +++ ../pspell-.12/./interface/itemize.cc    Fri Mar 30 17:53:16 2001
  14. @@ -1,7 +1,7 @@
  15.  
  16. -#include <cctype>
  17. -#include <cstring>
  18. -#include <cstdlib>
  19. +#include <ctype.h>
  20. +#include <string.h>
  21. +#include <stdlib.h>
  22.  
  23.  #include "mutable_container.h"
  24.  
  25. --- ./interface/string.cc    Sat Mar 25 02:08:33 2000
  26. +++ ../pspell-.12/./interface/string.cc    Fri Mar 30 17:53:16 2001
  27. @@ -1,5 +1,5 @@
  28.  
  29. -#include <cstring>
  30. +#include <string.h>
  31.  #include "string.hh"
  32.  
  33.  PspellString::PspellString() {
  34. --- ./interface/getdata.cc    Fri Nov 24 16:48:14 2000
  35. +++ ../pspell-.12/./interface/getdata.cc    Fri Mar 30 17:53:16 2001
  36. @@ -1,5 +1,5 @@
  37.  
  38. -#include <cstring>
  39. +#include <string.h>
  40.  
  41.  #include "string.hh"
  42.  #include "getdata.hh"
  43. --- ./interface/getdata.hh    Thu Aug  3 06:38:10 2000
  44. +++ ../pspell-.12/./interface/getdata.hh    Tue Apr  3 23:38:18 2001
  45. @@ -13,7 +13,7 @@
  46.  
  47.  #include "conf.h"
  48.  
  49. -#include <iostream>
  50. +#include <iostream.h>
  51.  
  52.  class PspellString;
  53.  
  54. --- ./interface/string_map_impl.cc    Wed Jan 24 21:39:34 2001
  55. +++ ../pspell-.12/./interface/string_map_impl.cc    Fri Mar 30 17:53:16 2001
  56. @@ -1,6 +1,6 @@
  57.  
  58. -#include <cstring>
  59. -#include <cassert>
  60. +#include <string.h>
  61. +#include <assert.h>
  62.  
  63.  #include "string_map_impl.hh"
  64.  
  65. --- ./interface/convert.cc    Fri Nov 24 00:30:04 2000
  66. +++ ../pspell-.12/./interface/convert.cc    Tue Apr  3 23:41:20 2001
  67. @@ -1,10 +1,10 @@
  68.  
  69.  #include "conf.h"
  70.  
  71. -#include <fstream>
  72. -#include <cassert>
  73. -#include <cstdlib>
  74. -#include <cctype>
  75. +#include <fstream.h>
  76. +#include <assert.h>
  77. +#include <stdlib.h>
  78. +#include <ctype.h>
  79.  
  80.  #include "convert.hh"
  81.  #include "app_string.hh"
  82. --- ./interface/string_list.cc    Tue May 30 11:59:40 2000
  83. +++ ../pspell-.12/./interface/string_list.cc    Fri Mar 30 17:53:16 2001
  84. @@ -15,7 +15,7 @@
  85.  void pspell_string_list_assign(PspellStringList * l, 
  86.                     const PspellStringList * o)
  87.  {
  88. -  return l->assign(o);
  89. +  l->assign(o);
  90.  }
  91.  
  92.  PspellStringEmulation * 
  93. @@ -36,7 +36,7 @@
  94.  
  95.  void pspell_string_list_clear(PspellStringList * l)
  96.  {
  97. -  return l->clear();
  98. +  l->clear();
  99.  }
  100.  
  101.  int pspell_string_list_empty(const PspellStringList * l)
  102. --- ./interface/manager_impl.cc    Sun Jan 28 13:12:23 2001
  103. +++ ../pspell-.12/./interface/manager_impl.cc    Tue Apr  3 23:38:23 2001
  104. @@ -1,11 +1,11 @@
  105.  
  106.  #include "conf.h"
  107.  
  108. -#include <iostream>
  109. -#include <fstream>
  110. -#include <cassert>
  111. -#include <cstring>
  112. -#include <cctype>
  113. +#include <iostream.h>
  114. +#include <fstream.h>
  115. +#include <assert.h>
  116. +#include <string.h>
  117. +#include <ctype.h>
  118.  
  119.  // POSIX includes
  120.  #include <dirent.h>
  121. --- ./interface/config_impl.hh    Fri Nov 24 16:43:20 2000
  122. +++ ../pspell-.12/./interface/config_impl.hh    Tue Apr  3 23:38:17 2001
  123. @@ -13,7 +13,7 @@
  124.  
  125.  #include "conf.h"
  126.  
  127. -#include <iostream>
  128. +#include <iostream.h>
  129.  #include "config.h"
  130.  #include "string_map.h"
  131.  #include "string.hh"
  132. --- ./interface/config_impl.cc    Wed Jan 24 21:09:45 2001
  133. +++ ../pspell-.12/./interface/config_impl.cc    Tue Apr  3 23:40:23 2001
  134. @@ -1,11 +1,11 @@
  135.  #include "conf.h"
  136.  
  137. -#include <cstdio>
  138. -#include <cstring>
  139. -#include <cstdlib>
  140. -#include <iomanip>
  141. -#include <fstream>
  142. -#include <cassert>
  143. +#include <stdio.h>
  144. +#include <string.h>
  145. +#include <stdlib.h>
  146. +#include <iomanip.h>
  147. +#include <fstream.h>
  148. +#include <assert.h>
  149.  
  150.  #include "error.h"
  151.  #include "config_impl.hh"
  152. @@ -18,6 +18,8 @@
  153.  
  154.  static const PspellModule a_module = PspellModule();
  155.  
  156. +typedef PspellNotifier *PspellNotifierPtr;
  157. +
  158.  PspellConfigImpl::PspellConfigImpl(const char * name,
  159.                     const PspellKeyInfo * mainbegin, 
  160.                     const PspellKeyInfo * mainend)
  161. @@ -31,7 +33,7 @@
  162.    kmi.extra_end   = 0;
  163.    kmi.modules_begin = &a_module;
  164.    kmi.modules_end   = &a_module;
  165. -  notifier_list = new (PspellNotifier *)[1];
  166. +  notifier_list = new PspellNotifierPtr[1];
  167.    notifier_list[0] = 0;
  168.  }
  169.  
  170. @@ -44,7 +46,7 @@
  171.    : name_(other.name_), attached_(0), kmi(other.kmi) 
  172.  {
  173.    data_ = other.data_->clone();
  174. -  notifier_list = new (PspellNotifier *)[1];
  175. +  notifier_list = new PspellNotifierPtr[1];
  176.    notifier_list[0] = 0;
  177.  }
  178.  
  179. @@ -55,7 +57,7 @@
  180.    attached_ = 0;
  181.    kmi = other.kmi;
  182.    data_->assign(other.data_);
  183. -  notifier_list = new (PspellNotifier *)[1];
  184. +  notifier_list = new PspellNotifierPtr[1];
  185.    notifier_list[0] = 0;
  186.    return *this;
  187.  }
  188. @@ -107,7 +109,7 @@
  189.  
  190.      PspellNotifier * * temp = notifier_list;
  191.      size_t old_size = i - temp;
  192. -    notifier_list = new (PspellNotifier *)[old_size + 2];
  193. +    notifier_list = new PspellNotifierPtr[old_size + 2];
  194.      unsigned int j = 0;
  195.      for (; j != old_size; ++j)
  196.        notifier_list[j] = temp[j];
  197. @@ -128,7 +130,7 @@
  198.    } else {
  199.      PspellNotifier * * temp = notifier_list;
  200.      size_t old_size = i - temp;
  201. -    notifier_list = new (PspellNotifier *)[old_size];
  202. +    notifier_list = new PspellNotifierPtr[old_size];
  203.      unsigned j = 0;
  204.      for (; j != old_size - 1; ++j) {
  205.        if (temp[j] != n)
  206. @@ -650,7 +652,7 @@
  207.  void PspellConfigImpl::write_to_stream(ostream & out, 
  208.                         bool include_extra) 
  209.  {
  210. -  ios::fmtflags f = out.flags();
  211. +  long f = out.flags();
  212.    out.setf(ios::left);
  213.    //out << "## " << name() << "\n\n";
  214.    PspellKeyInfoEmulation * els = possible_elements(include_extra);
  215. --- ./interface/conf.h    Thu Aug  3 06:41:45 2000
  216. +++ ../pspell-.12/./interface/conf.h    Tue Apr  3 23:39:03 2001
  217. @@ -2,7 +2,7 @@
  218.  #ifndef CONF__H
  219.  #define CONF__H
  220.  
  221. -#define STD       std::
  222. -#define USING_STD using namespace std;
  223. +#define STD       /* std:: */
  224. +#define USING_STD /* using namespace std; */
  225.  
  226.  #endif
  227. --- ./examples/example-c.c    Sat Nov 25 15:52:07 2000
  228. +++ ../pspell-.12/./examples/example-c.c    Wed Apr  4 13:03:35 2001
  229. @@ -1,7 +1,11 @@
  230.  
  231.  #include <stdio.h>
  232.  #include <string.h>
  233. +#ifdef INTERNAL
  234. +#include "../interface/pspell.h"
  235. +#else
  236.  #include <pspell/pspell.h>
  237. +#endif
  238.  
  239.  static void print_word_list(PspellManager * manager, 
  240.                  const PspellWordList *wl) 
  241. @@ -101,7 +105,7 @@
  242.      "  m           dumps the master  word list\n"
  243.      "  S           saves all word lists\n"
  244.      "  C           clear the cuurent sesstion word list\n"
  245. -    "  x           quite\n"    );
  246. +    "  x           quit\n"    );
  247.        break;
  248.      case 'p':
  249.        print_word_list(manager, pspell_manager_personal_word_list(manager));
  250. --- ./examples/example-cxx.cc    Thu Nov 23 18:46:50 2000
  251. +++ ../pspell-.12/./examples/example-cxx.cc    Wed Apr  4 13:03:42 2001
  252. @@ -1,7 +1,11 @@
  253.  
  254. -#include <iostream>
  255. -#include <cstring>
  256. +#include <iostream.h>
  257. +#include <string.h>
  258. +#ifdef INTERNAL
  259. +#include "../interface/pspell.h"
  260. +#else
  261.  #include <pspell/pspell.h>
  262. +#endif
  263.  
  264.  static void print_word_list(PspellManager * manager, 
  265.                  const PspellWordList *wl) 
  266. @@ -95,7 +99,7 @@
  267.      "  m           dumps the master  word list\n"
  268.      "  S           saves all word lists\n"
  269.      "  C           clear the cuurent sesstion word list\n"
  270. -    "  x           quite\n";
  271. +    "  x           quit\n";
  272.        break;
  273.      case 'p':
  274.        print_word_list(manager, manager->personal_word_list());
  275.